import request from '@/utils/request'



const BASE_URL='/admin/system/sysCar';

export default{

    findPageInfo(page,limit,searchObj){
      return request({
            url:`${BASE_URL}/${page}/${limit}`,
            method:'get',
            params:searchObj
        })
    },

    
    addCar(SysCar){
        return request({
            url:`${BASE_URL}/addCar/`,
            method:'post',
            data:SysCar
        })
    },

    findCarById(id){
        return request({
            url:`${BASE_URL}/findCarById/${id}`,
            method:'get',
            
        })
    },

    updateCar(SysCar){
        return request({
            url:`${BASE_URL}/updateCar`,
            method:'post',
            data:SysCar
        })
    },

    removeCarById(id){
        return request({
            url:`${BASE_URL}/removeCarById/${id}`,
            method:'delete',
            
        })
    },
        //  7、批量删除
        removeCarByIds(ids) {
            return request({
                url: `${BASE_URL}/removeCarByIds`,
                method: 'delete',  // 提交方式
                data: ids
            })
        },


    




    
}